package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author stone
 * @date 2021/11/22 14:54
 */
@Controller
public class HelloController {

    @ResponseBody
    @RequestMapping(value = {"hello","hello1","hello2","hello3"})
    public String hello() {
        return "hello world demo3";
    }

    @RequestMapping({"goodbye*","goodbye/*"})
    @ResponseBody
    public String goodbye() {
        return "byebye demo3";
    }

    //@RequestMapping({"index","home","home/index"})
}
